num=[]
n=int(input("输入上限："))
if n>1:
    for i in range(2,n):
       #j=2
       for j in range(2,i):
          if(i%j==0):
             break
       else:
          num.append(i)
    print(num)

else:
    print("不符合操作")
